<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="renderer" content="webkit">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>添加/更新</title>
    <link rel="shortcut icon" href="favicon.ico">
    <link href="/admin/css/bootstrap.min14ed.css?v=3.3.6" rel="stylesheet">
    <link href="/admin/css/font-awesome.min93e3.css?v=4.4.0" rel="stylesheet">
    <link href="/admin/css/animate.min.css" rel="stylesheet">
    <link href="/admin/css/style.min862f.css?v=4.1.0" rel="stylesheet">
    <link href="/admin/frame/layer/css/layui.css" rel="stylesheet">

</head>
<body>
<div class="container-fluid" style="margin-top: 30px;">
    <div class="row">
        <div class="col-sm-12 col-md-12">
            <form class="form-horizontal" id="addForm" action="/Admin/Ware/WareOrderInfo/addOrUpdate" method="get">
                <c:if test="${isUpdate==true}">
                    <div class="form-group hidden">
                        <label class="col-sm-2 control-label"><span style="color: red">*</span>编号：</label>
                        <div class="col-sm-6">
                            <input name="id" readonly  value="${obj.id}" class="form-control">
                        </div>
                    </div>
                </c:if>




                        <div class="form-group">
                            <label class="col-sm-2 control-label"><span style="color: red">*</span>订单编号：</label>
                            <div class="col-sm-6">
                                    <input  name="orderNum" disabled minlength="0" maxlength="24" type="text"  value="${obj.orderNum}" class="form-control" placeholder="请输入订单编号">
                            </div>
                        </div>


                        <div class="form-group">
                            <label class="col-sm-2 control-label"><span style="color: red">*</span>订单金额：</label>
                            <div class="col-sm-6">
                                    <input  name="orderMoney" disabled min="0" type="number"  value="<fmt:formatNumber type="number" value="${obj.orderMoney}" pattern="0.00" maxFractionDigits="2"/>" class="form-control" placeholder="请输入订单金额">
                            </div>
                        </div>


                        <div class="form-group">
                            <label class="col-sm-2 control-label"><span style="color: red">*</span>创建时间：</label>
                            <div class="col-sm-6">
                                    <p class="form-control-static">
                                        <input  name="createTime" disabled  type="datetime"  value=" <fmt:formatDate value="${obj.createTime}" pattern="yyyy-MM-dd hh:mm:ss" />" class="form-control" placeholder="请输入创建时间">

                            </div>
                        </div>


                        <div class="form-group">
                            <label class="col-sm-2 control-label"><span style="color: red">*</span>订单状态：</label>
                            <div class="col-sm-6">
                                <select  class="form-control" name="stateId">
                                    <c:forEach items="${typeList}" var="item">
                                        <c:if test="${item.id eq obj.stateId}">
                                            <option selected value="${item.id}">${item.dvalue}</option>
                                        </c:if>
                                        <c:if test="${isUpdate!=true||item.id!=obj.stateId}">
                                            <option value="${item.id}">${item.dvalue}</option>
                                        </c:if>
                                    </c:forEach>
                                </select>
                            </div>
                        </div>


                        <div class="form-group">
                            <label class="col-sm-2 control-label"><span style="color: red">*</span>用户名：</label>
                            <div class="col-sm-6">
                                    <input disabled  name="userId"  type="text"  value="${obj.sysUser.username}" class="form-control" placeholder="请输入用户编号">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label"><span style="color: red">*</span>商品名称：</label>
                            <div class="col-sm-6">
                                    <input disabled  name="wareGoodsInfo.goodsName"  type="text"  value="${obj.wareGoodsInfo.goodsName}" class="form-control" placeholder="请输入用户编号">
                            </div>
                        </div>


                        <div class="form-group">
                            <label class="col-sm-2 control-label"><span style="color: red">*</span>订单留言：</label>
                            <div class="col-sm-6">
                                <textarea disabled name="leaveMessage" class="form-control">${obj.leaveMessage}</textarea>
                            </div>
                        </div>


                        <div class="form-group">
                            <label class="col-sm-2 control-label"><span style="color: red">*</span>订单描述：</label>
                            <div class="col-sm-6">
                                    <input disabled name="orderDescribe" minlength="0" maxlength="64" type="text"  value="${obj.orderDescribe}" class="form-control" placeholder="请输入订单描述">
                            </div>
                        </div>


                        <div class="form-group">
                            <label class="col-sm-2 control-label"><span style="color: red">*</span>最新操作时间：</label>
                            <div class="col-sm-6">
                                    <p class="form-control-static">
                                        <input required name="operateTime" disabled type="datetime"  value=" <fmt:formatDate value="${obj.operateTime}" pattern="yyyy-MM-dd hh:mm:ss" />" class="form-control" placeholder="请输入最新操作时间">
                            </div>
                        </div>
            </form>
        </div>
    </div>
</div>

</body>
<script src="/admin/frame/jquery/jquery-1.9.1.min.js"></script>
<script src="/admin/frame/bootstrap/js/bootstrap.min.js"></script>
<script src="/admin/js/content.min.js?v=1.0.0"></script>
<script src="/admin/frame/jquery-validate/jquery.validate.min.js"></script>
<script src="/admin/frame/jquery-validate/messages_zh.min.js"></script>
<script>
    $().ready(function() {
        $("#addForm").validate();
    });
</script>
</html>
